Controlling two linear motions of an object 2