added instance variable @transactions
changed query in active transaction method
changed variable @account to @transactions
changed method transactions to grouped_transactions
used the variable transaction