Removed repetitive code
Merge pull request #7 from vaishaks/master

Removed repetitive code