Separate out the MR code sample from the basic code sample