Another idea on how to create base objects specifying their derivate classes.