Implement Connection class and API