the professor , who also happened to be a man blessed with a poetic disposition , extemporaneously came upon that little verse in his heart , and before it happened that its words got lost on his memory , he pulled out a small notepad from the pocket of his shirt , and happily jotted it down in one of its little pages .