one class for connection