code for Bowden and Diehl (2013) paper for Brazil Compliance Conference.