refactor Sum and Bank