sample code for vehicle oo model