The making of a No. 1 song