Corrected connect example to resolve #2