Added some factories and dependency to each class.
Added the schedule class