Created Taskbase class & performed code formatting
Code refactoring