Adds main() Function

- Moves implementation of the Hello, World! problem into a separate function.