Refactor 2: Put the init method in the correct place so the connection can
actually be created. See refactor 3 for further changes to the client.