This is the start of the scheduling class