fixed up this example a bit