CS171, Homework 9