Adding compose function