Added connection class and some dependencies