Added code for transaction history mining