Problem-based learning in astrophysics