CS171, Homework 3