decorator in a class