introducing the ConnectionWrapper class