implemented Tuple, Relations classes