Extract Connection class