Implement atom, compare-and-set!, reset!, swap! and deref for atoms