2.3 totalSum works