changed source code to maven style