Generate dynamically the inner class