added sum function

also changed savings type to float