Chord class update

The method generate has been simplified.