add cluster sample code