TODO: complete judgement3 exercise