Added generate_pun and add_pun functions to PunGenerator class.