Assignment 2 for CS 211B