logic for various course details