adding connect class