Design patterns: Strategy e Chain of Responsibility