CS172 EX04: Homework four, due June 6