Changing example to avoid nested types