introduction to the decorator and factory patterns 4439164