How the legal system works