Updated transaction class