In which sentence does the prepositional phrase function as an adjective?

a. The man with the fancy yellow hat rode an old, beat-up bicycle.
b. The man riding the old, beat-up bicycle wore a fancy yellow hat.
c. The man was wearing a fancy yellow hat when he left his house.
d. Wearing a sheepish grin, the man rode his bicycle in the middle of the street.