Code for the programming examples on mpitutorial.com