Craft a musical piece that incorporates the given motif and follows the outlined structure.
X:1
L:1/8
M:4/4
K:F
['A2 d>e', 'c>dcA FGAd f2 g2 a2'  
X:1
L:1/8
M:4/4
K:F
 D>E | F4 E4 | D>EFG A2 d>e | f4 e4 | dAAG A>GFE | F2 F>F E2 E>E | DEFG A2 d>e | f>dec dAAd | 
 cAGE D2 || A=B | c>dcA FGAd | f2 g2 a2 fg | agfa gece | f2 e2 d2 A>=B | c>dcA FGAd | 
 f2 g2 a2 f>g | agab afde | f2 e2 d2 ||  