Work done on x.flatten
Work done on unit testing x.flatten, x.keys, x.values, x.pairs.