Function getCompositions