connection in oop