First working versin

Got all cases that have summation ready