finished videos 30 and 31. added code to closeConnection. deleted some code in video 31