Homework #5 for CSci 223.