take displacement instead of force in the example