CS61B Project 2 Code