legal system history