Tuple data type and utility functions