Code for my IJCAI'13 conference poster : Use it as a template for your own.