C++ chap 1 project