design patterns Notebook