Finished implementing the connection class.