original version (using maven)

To do: comple program and fix bugs