connect class