code for twitter project