working on c++ chapter