Updated example with comments