Build a musical work using the provided motif and following the indicated form.
X:1
L:1/8
M:4/4
K:D
['g f2 AA Te2 de Tf2 ef', 'AGAB defd'  
X:1
L:1/8
M:4/4
K:D
 g | f2 AA Te2 de | Tf2 ef dBBg | Tf2 AA e2 de | fedB AAA :: g | AGAB defd | Aefd edBd | 
 AGAB defd | efdB AAA :|  