implement the liist of list structure