two class decorator implemented with class.