wrote data_sockets and a main() that tests it