Adding user_transactions function