ON THE GENERATION OF M-COMPOSITIONS AND M-PARTITIONS