Corrected generateCompliment()