added variable sum function
Added second snippet