Using CBT to teach problem solving skills