Code for my first paper