Changed schedule and staff class so that the connection is made from the model and passed to the staff and schedule class.