In the second sentence , it is embedded in the noun phrase the man with a gun .
In the second sentence , it is is modifying the noun man .
In the second sentence , it is embedded in the noun phrase the man with a gun and is modifying the noun man .