Constructor for the connector