Melody Generator Functioning Completely