Minor refactoring to show how methods can be made smaller
Merge pull request #5 from ugupta/master

Minor refactoring to show how methods can be made smaller