Trying to format a list of transactions