modified sample hello world file

review the code