Trial and error in the court system