make solve a method