Develop a musical piece using the given motif and adhere to the outlined musical structure.
X:1
L:1/8
Q:1/8=160
M:6/8
K:D
['A2 B AFD Bcd dcB A>BA AFD', 'd3 fga aba cde efg fed cde'  
X:1
L:1/8
Q:1/8=160
M:6/8
K:D
"^con spirito" A2 B AFD | Bcd dcB | A>BA AFD | G3 F2 E | FAF A>BA | efg fed | e>fe ecA | d3 d3 :| 
 fga aba | cde efg | fed cde | A3- A2 A | FDA FDA | BGB BGg | fed c/d/ec | d3 d3 :|  