Added a base class for ports and the start of the input port.
!