example problem of law of acceleration