solve throws Exception problem
solve throws Exception problem