Exploration of decorator pattern