fixed typos in patterns lecture