with three electromagnets to control the two degrees of freedom