Adding new method foreach property a child should be of type.