pintos project2 (all tests passed)