Add design patterns and write examples of model in es6