More class examples from C++ Progamming book by D.S. Malik