An enlightened theory of humor