Build a musical piece by incorporating the given motif into the prescribed form.
X:1
L:1/8
M:4/4
K:D
['', 'B =cAAF G2 AB =cABG A2 dB', 'f3 g'  
X:1
L:1/8
M:4/4
K:D
 d2 B |: =cAAF G2 AB | =cABG A2 dB | cAAF G2 eg |1 f2 ec AddB :|2 f2 e^c Adde || f3 g a2 ag | 
 f3 g afde | f3 g a2 ge | fdec Adde | f3 g a3 g | effg afde | fgaf g2 ag | f2 ec Ad d2 |]  