zookeeper code for learning