An Object-Oriented version of the Many Lines Average program.