Homework 2 cpp file