A simple exercise to (re)learn C++