refactored methods and tests for bike class