Created the getTransactions method, dirty, no comments