Learned C++ (moved method declaration prior to use)