code hacked  on during shaastra 2013 hackfest at IIT-M