changing object syntax to adult and child