Started working on flatten and concatenate