Adding example code to leader election classes to start project implementation