All the while the melody is still being shaped, a “hook” is being searched for and just the right amount of variety and repetition, unity and contrast are used to give the song meaningful structure; i.e. introduction, verse, chorus, bridge, etc. Of course Andrew or which ever musician he was writing with would often predetermine the structure with the chord sequence.