using class inheritance for vehicles