creation of vehicle according to type