edX Berkeley CS169.1x: Homework 2