finished assignment

The problem was that we had the same variable name. x is passed into
(ref x). Therefore it keeps finding (ref x) instead of the actual x that
we want