Add an example using the `linked_var` mechanism
[skip CI]