General principles in designing education