Added an example of connect call