UML and pattern application (part1)