Using the given motif as a foundation, craft a musical piece adhering to the outlined form.
X:1
L:1/8
Q:1/8=180
M:4/4
K:D
['AF DFAF', 'ABde fa a2 afdf (3ege'  
X:1
L:1/8
Q:1/8=180
M:4/4
K:D
 A2 AF DFAF | G2 (3BAG dGBG | (3ABA AF DFAF | GBAF EFDF | A2 AF DFAF | G2 (3BAG dGBG | FA A2 DFAF | 
 GBAF EF D2 || ABde fdef | gefg (3ege dB | ABde fa a2 | afdf (3ege dB | ABde fdef | (3gag fg edBd | 
 ABde fa a2 | afdf (3ege dB ||  