created custom Connection class