introduction to the decorator and factory patterns 8560450