Ok I think it works now. Bugs:
-Didn't set the sched() function to return a value
-Didn't start the package_arrivals as a process