election implemented (not final, need to test it)