Which sentence uses a metaphor?

 - Mr. Smith's long legs were sunflower stalks.
 - Mr. Smith's legs were as long as sunflower stalks.
This sentence uses a metaphor:
Mr. Smith's long legs were sunflower stalks.
The words legs and sunflower stalks are compared without the word like or as.
This sentence uses a simile:
Mr. Smith's legs were as long as sunflower stalks.
The words legs and sunflower stalks are compared using the word as.