Homework Code for CS 169