Assignment 5 for the UW c++ class, third quarter