A Hinge with 4 States.

A machine with four states. See the track.