Added new Connection class to move the connecting code away from main.  This makes it easier to setup and use.  I also added in a method in main to make it easier to setup a connection so that it's not locked in like before.