Coding C++ from learncpp.com