fixed mistake in sum example