added read in from files with tuples