Just an exercise for learning IO in C++