adding hw1.cpp