Updated the example with more comments