How to write a simple undo system for your app | Hacker News Reader