Create CoinPairsModel class and add refactored code from playground