CFG assignment of tuples working with depth 1