CS169 Homework 2