Give inputs a common base class.