Rename generate to get_example