This added checks for duplicate courses
merged with new checks for duplicate class