Starting code for TCP