Refactored hello world message to its own method

Resolves #4