The primary idea is to build chords that contain notes similar to the notes being played at the same time in the melody.