storing transactions (working)