Refactor hello world example to be more readable