What is the purpose of a limerick?

A. to make the reader feel sad
B. to compare two or more things
C. to express the poet's feelings
D. to make the reader laugh