CS174 Homework 3