protected class definition instead of dynamic class definition.