Connection class implemented