sockets program finalized