Made getMelodies in MelodyModel