refs #2 added spend functionality - need to write tests