Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/8
Q:3/8=100
M:6/8
K:D
['A d2 d (ed)e (fa)f (ed)e (fe)d', 'a2 b (af)d'  
X:1
L:1/8
Q:3/8=100
M:6/8
K:D
 A | d2 d (ed)e | (fa)f (ed)e | (fe)d (dB)A | (Ad)f e2 A | d2 d (ed)e | (fa)f (ed)e | 
{de} (fe)d (dB)A | (AB)c d2 :: f | a2 b (af)d | a2 b (af)d | (af)d (af)d | (baf){f} e2 A | 
 d2 d (ed)e{de} (fa)f (ed)e |{de} (fe)d (dB)A | (AB)c d2 :|  