solution for operating system problem one and two.