Add basic connection class template