brushing up on c++ again