Code that I need for a second year Operating Systems assignment