Assignment 3 for OS