Adds decelerate method

Adds decelerate method and test case