A few more changes/hacks to this example, notably for working with group assignments that handled errors.