Added a simple example and a diagram showing the process.