Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
M:6/8
K:D
['A2 A', 'f efg'  
X:1
L:1/8
M:6/8
K:D
|: d2 A A2 A | GAB A2 A | Bcd efg | fed cBA | d2 A A2 F | GAB A2 A | Bcd efg | Adc d2 d :: 
 e2 A A2 f | efg f2 f | efg fed | cde A2 A | BGB AFA | BGB AFA | Bcd efg | Adc d2 d :|  