code for the iPolitics project