updated Hello World examples to include user-defined types and error handling