static int recursive_sum(Vector pymts)
{
// eturn condition
if (pymts.size() == 0) return 0;
// recursive steps, vector has at least size of 1, of payment type (assume all objects are class Payment)
return pymts.remove(0).sum + recursive_sum(pymts);
}