add my contribution

Signed-off-by: Tiago Maluta <tiago.maluta@gmail.com>
Merge pull request #269 from maluta/master

Add my contribution to this social coding experiment.
Merge remote-tracking branch 'upstream/master'

Merging my new function with the latest upstream version.