Cognitive model of depression is given by ?