Creating a Connection class