updated third question with answer