cognitive flexibility through parenting