UML and pattern application (part2)