Connection class creation