add example of struct inheritance