Code that attempts to connect to Google and works if you have an internet