Added connection class, not tested yet