wrote a draft of the scheduling algorithm