corrected typo in example: flaten --> flatten

minor contribution