Refactored code to an Eclipse project