Integrating practical experience into teaching