changed array of notes to Melody