lect3 detect ambiguity 2 solutions