COGS 121 Assignment 1