UC Davis ECS 140 Homework 6