programming assignment #2 for operating systems