Made a MusicGenerator class