Beginners’ guide to elections