setAcceleration in Truck.java