Added decorator for inner class inheritance