Example

and you want to be able to add either a dog or a parrot to the list. Notice their properties are different, dog can bark and parrot can talk. What you do is you create templates for each of these animals: