Added a schedule class and proper init methods for it