Assignment 2 for uw c++ qtr 3