Start of a base class for controllers