Compose a musical piece that incorporates the given motif and adheres to the specified form.
X:1
L:1/8
Q:3/8=100
M:6/8
K:D
['A/G/ FDF d2 f edc d2 B', 'D2 f/g/ afd cac BgB AfA GeG'  
X:1
L:1/8
Q:3/8=100
M:6/8
K:D
 A/G/ | FDF d2 f | edc d2 B | AFd AFD | GEE E2 G | FDF AFA | BAB cBc | dcB AFd | AFD D2 :: f/g/ | 
 afd cac | BgB AfA | GeG FdF | GEE E2 f/g/ | afa geg | fdf ecA | Bcd edc | ddd d2 :|  