Started working on weighted row sum for pivoting