For COGS 121 at UCSD