adding examples of composition and inheritance