Revised the representation format of Transaction class