Cons and variables for sharing memory sample