Construct musical works that adhere to the outlined structure and include the given musical motif.
X:1
L:1/8
M:6/8
K:D
['A2 A ABc d2 d def gfg', 'f2 g afd'  
X:1
L:1/8
M:6/8
K:D
 A2 A ABc | d2 d def | gfg Bcd | efd cBA | A2 A ABc | d2 d def | gfg ABc | d3 D3 :: f2 g afd | 
 g2 a bge | f2 g afd | efd cBA | f2 g afd | g2 a bge | f2 g afd | Bec d3 :|  