Teaching children how to manage problems