Implemented hashCode and equals functions to get better comparison in
CourseOffered

Corrected isExists function in Course class