Started implementing connection class