lecture 10: improve examples