Ruby application to calculate gear ratios from 'Practical Object-Oriented Design in Ruby'