Create abstract classes for connection purpose