Prepare structure of the timetable