CS170, Homework 5