Added Sum implementation