Refracted code
Merge pull request #1 from preetambhat/master

Refracted code