Changed HelloWorld using Java7 feature
updated functions