completed milestone 29: implemented openConnection Functions