created inner class Pair and new HashMap for currensy rates.