lab2 for operating system class