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
['', 'D2 FA DAFA', 'fd gefd'  
X:1
L:1/8
M:2/2
K:D
 A/G/F/E/ |: D2 FA DAFA | A,2 CE A,ECE | D2 FA DAFA |1 (3Bcd (3cde dBAF :|2 (3Bcd (3cde dfec || 
 d2 fd gefd | (3BBB ed cABc | (3ddd fd gefd | (3Bcd (3cde dfec | d2 fd gefd | (3BBB ed cABc | 
 defg abag | fdec dBAF ||  