refactor to maven project