Create objects in ClassGenerator.