adding code for applicatio and pom.xml for maven