Homework 3 for CSci 223.