Refactore Timetable.rb