ex3_5 flatten example added