Homework #2 for Hao Chen's ECS60