Develop a musical composition incorporating the given motif and maintaining the required musical form.
X:1
L:1/8
Q:1/8=180
M:4/4
K:D
['AFDF AFAd f3 g afef', 'd3 e fded BAFA dcdf a2 af'  
X:1
L:1/8
Q:1/8=180
M:4/4
K:D
 e | A2 AB AFDF | AFAd f3 g | afef dBBc | dBAF FEDF | AFAB AFDF | AFAd f3 g | afef dBAF | 
 Adfe d3 :| e | fded BAFA | dcdf a2 af | fefd edBc | dBAF FEDF | A2 AB AFDF | AFAd f3 g | 
 afef dBAF | Adfe d3 :|  