practise examples of cpp