add patterns lecture