Book of Joshua legal system