video 29 - Implementing the openConnection Function