Added type checking in Course and Time