What were the laws of the court system based upon