Add example for dealing with side effects