Homework 3 for CS 3560