Working with effects and handlers to implement state and other patterns.