Implementing sum

Thanks for the explanation!