Moving with acceleration
Shortened code