UC Davis ECS165A Homework 4