refactoring project file
Main method - refactored.