modified Decorator.cpp