Added IsEnrolled function to check if a student is enrolled in a given course, returns true/false.