assignment 2 for cs 183