added getters and setter to schedule - enforce encapsulation