--- /dev/null
+#ifndef PAIR_H
+#define PAIR_H
+
+template<typename A, typename B>
+class Pair {
+private:
+ A a;
+ B b;
+
+ Pair(A _a, B _b) :
+ a(_a),
+ b(_b) {
+ }
+
+ A getFirst() {
+ return a;
+ }
+
+ B getSecond() {
+ return b;
+ }
+};
+
+#endif