move tuples def function in Tuples class