added extension methods
Merge pull request #2 from dlively1/extensions

added extension methods