Implement `ref` behaviour
Implement
refbehaviour