Research as a basis for teaching