Finished coding for transaction class