Reverted Either.getLeft() and getRight() functions as suggested