add closure syntax examples
Some format changes the closure syntax example provided by aminmeyghani.
Resolves #1.
Removed original pull request file.