Refactoring the backEnd to have a better file structure.