Modularizing for easy understanding
changing variable names to follow java naming convention
Changing class name to follow standard naming conventions