removed dependency on JavaFX and created own Pair class