implement displayRates function