UC Davis ECS 140 Homework 2