Example of pattern decorator for a teaching class