I have these two functions that should add and remove the item on the list. The adding one should also calculate the total sum of all items, but it doesn\'t work quite exact