Create connection class