CS171, Homework 5