Added sum method for summary variables