Created the part which calcurates cumulative contribution ratio.