refactoring + maven file