CS189 hw 3