Implemented PublishSchedule method and Schedule class