added imports for Pair class