CS112 Week 5 Homework