Refactored the SequenceOfNotes object
Refactored the generatePhrases method in SequenceOfNotes object