Compose a musical work that seamlessly incorporates the assigned motif and abides by the given alphabetical pattern.
X:1
L:1/4
M:4/4
K:G
['g d']  
X:1
L:1/4
M:4/4
K:G
 e | d B2 A/ G/ | A E2 g | d B2 A/ B/ | G3 e | d B2 A/ G/ | A E2 g | d B2 A/ B/ | G3 g | d g G g | 
 a A2 g | d g f/ g/ a/ f/ | g3 g | d g G g | a A2 g | d g f/ g/ a/ f/ | g3 ||  