Controlling 2 linear motions of an object 1