Languages typically provide more than one grammatical construction to express certain types of messages. Your task is to generate a senetence with the same meaning as given sentence, but with different grammatical construction.

Bob sang the man who was wearing the hat a melody
Bob sang a melody to the man who was wearing the hat