Move all stuff from sched.c and sched.h to task,c and task.h, change the function names accordingly.