created an connection class