cogs 121 assignment 1