added the functionality of the sum