Converted timetable to use a grid layout for classes.