Watch the Melodic Motif #3 online guitar lesson by Brad Carlton from Guitar Lab: Melodic Options

Example 4 applies legato phrasing to the same melodic line by using hammer-ons and pull-offs.