Code from C++ From the Ground Up by Herbert Schildt