mmpatterns tutorial working