Creates an instance of several derived classes