functional sum initial commit
cleaned up sum