How to write Summation