added constructor for timetable