assignment1 from last semester