This code comes from Chapter 1 of the book "Refactoring: Improving the Design of Existing Code", by Martin Fowler. It is in the state you see at the beginning of the chapter. 2010-05-13 Ported to Ruby for 810:188 (Summer 2010) / Eugene Wallingford 2012-10-01 Ported back to Java for CS 2530 (Fall 2012) / Eugene Wallingford ----------------------------------------------------------------------------- HISTORY v0 The original code. v1 Decomposed the statement() method, creating helper methods to compute prices and frequent renter points.