an example ruby class for illustrating design principles