In generate_2, take two words as input