Added comments to solve_one_constraint and solve_two_constraints taken from user guide.