Adding methods getRate and getRates