added more functionality to hello.c [issue 2]