initial code to control car