hw3 add to C++

new homework