refactor TransactionTracker class to conform to the singleton design pattern