Use Gear class instead of Car class as an example