Error thrown

Call to a member function calculate_course_results() on boolean