blog 29 Implementing The openConnection Function