Added attribute 'sum' + getter/setter to type 'Set' + unittest.

Signed-off-by: Phillipp Ohl <phillippohl@gmail.com>