modify pair so it doesn't depend on array
responding to nitpicks
Merge pull request #4 from wh1pch81n/dsa-525-pair

modify pair so it doesn't depend on array