refactorizing parseFromFile methods into Parser class
refactorizing parseFromFile methods into Parser class