Solving Word Problems With a Model