get_savings function added