Compose a piece using the alphabetic notation of the assigned musical structure and the provided melodic motif.
X:1
L:1/8
M:4/4
K:D
['d2 d', 'f2 d', 'afd afd']  
X:1
L:1/8
M:4/4
K:D
 d2 d ded cBA | d2 d def gec | d2 d dfd c2 A | BGB Bcd ecA :: f2 d dfd c2 A | f2 d def gfe | 
 agf efe c2 A | BGB Bcd ecA :: afd afd c2 A | afd afd efg | afd efd c2 A | BGB Bcd ecA :|  