practising C++