first version for the generator of chords