update logic of performing tasks
add blueprint of TCPMachine.java