Craft a musical piece that incorporates the given motif and follows the outlined structure.
X:1
L:1/8
Q:1/4=120
M:2/4
K:D
['A d2 (cB) A3 A (BA)(Bc) d2', 'F>AA>A B>AA>A'  
X:1
L:1/8
Q:1/4=120
M:2/4
K:D
"^With animation." A | d2 (cB) | A3 A | (BA)(Bc) | d2 AA | BAGF | A2 A2 | A3 :: A | F>AA>A | 
 B>AA>A | F>AA>A | B>AA>A |"_>" d2"_>" e2 |({g}"_>" f>e)dd |"_>" e2"_>" c2 | d3 :|  