Add port scanner program verbatim from chapter 1