code to control car