changed printPoem() -> generatePoem() and printed in main()