Finished sum
Added boolean verification