started work on transaction functionality

just started--it won't compile as is.