Refactored and set up spring project.