adds an example of generating structs