finish phase 1 task4
finish writing priority scheduler without checking