CS193P Winter 2013 - code after implementation of homework 0