Odometer class for OOP version