An online legal research and writing system