cs176 assignment 2 homework