Some codes about implementing distributed systems