explain basic connect example