In which sentence does the prepositional phrase function as an adjective?
The man with the fancy yellow hat rode an old, beat-up bicycle.
The man riding the old, beat-up bicycle wore a fancy yellow hat.
The man was wearing a fancy yellow hat when he left his house.
Wearing a sheepish grin, the man rode his bicycle in the middle of the street.