clerified the example with comments.

* seperated the variable decleration and assignment.
* commented each line.