created Election.java and write code to create election