add leader election sample