My first attempt at writing something cool in C++