Static and dynamic structure in design patterns