Develop a musical piece using the given motif and adhere to the outlined structure.
X:1
L:1/8
M:6/8
K:D
['dAF c2 B AFD G2 F ECA,', 'EEE E2 F G2 A B2 c', 'A G2 B'  
X:1
L:1/8
M:6/8
K:D
|: dAF c2 B | AFD G2 F | ECA, ECA, | DEF E2 A | dAF c2 B | AFD G2 F | ECA, ECA, | ABc d3 :: 
 EEE E2 F | G2 A B2 c | dAF c2 B | AFD G2 F | EEE E2 F | G2 A B2 c | dAF c2 B | ABc d3 :: 
 B2 d B2 A | G2 B G2 F | E2 G E2 D | C2 E A,B,C | D2 F E2 G | F2 A G2 B | cBA cBA | cBA d3 :|  