homework 2 add to c++