Implementation of some Design-Patterns