UC Davis ECS 140 Homework 4