comp252 assignment 1