Made changes to the course class and added the pre-req validity check