add cluster demo code