Both examples access the M matrix, so we initialize M to be the identity matrix. See #443 for discussion.