Building an open source legal system