TCP Server code written for Udemy online course