Add extensions.
Merge pull request #8 from cirosantilli/extensions

Add extensions. Thanks to @cirosantilli