More code refactoring as before
Created constructors for required attributes
Merge pull request #2 from aravindbargurhiriyannaiah/codeRefactoring

More code refactoring as before