A Cognitive-Developmental Analysis of Humour