Created connection class