Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:2/2
K:D
['fdAd f3', 'fgaf efgB eg g2 a3 g fdec'  
X:1
L:1/8
M:2/2
K:D
 fdAd f3 a | geBe gbag | fdAd f3 e | defd efdg | fdAd f3 a | gebg eg g2 | fdAd f3 e | defd efdf || 
 a2 ag fgaf | efgB eg g2 | a3 g fdec | defd ef d2 | abag fgaf | efgB eg g2 | a3 g fdec | 
 defd efde ||  