Finished flatten assignemnt.