with two degrees of freedom