jtong - change function name of slove to solve