add example with embedded types