Added java-code and introduction