refactoring of Bike class