very basic connect() method