Adding of a method "get" to Pair class.