First-time parents learn the right way of parenting