Implementing Decorator pattern