added design patterns sample code and lecture notes