Implement Tuple.java