working with tuples and output