edit lecture: add pattern binding to lecture 09