can you use this decorator on the class?