LawSim: a framework template for multimedia problem solving in law