Extended HelloWorld.java with name prompt