cogs 121 Assignment 2