CS189.1x Homework 2