How do you get the pokeflute in Pokemon Yellow?

You have to get to the top of the Pokemon Tower and talk to the man. He will give it to you for saving him.