Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:4/4
K:D
['A,D (3DDD A,DFA BFAF EABc d2 cA', 'fd (3ddd fdgd', 'edBc dBBA Bcde fdgf e2 fg a3'  
X:1
L:1/8
M:4/4
K:D
 A,D (3DDD A,DFA | BFAF EABc | d2 cA (3Bcd AF | GEFD EDB,D | A,D (3DDD A,DFA | BFAF EABc | 
 d2 cA (3Bcd AF |1 GFEG FDDB, :|2 GFEG FDD e || fd (3ddd fdgd | fdgf edBc | dBBA Bcde | 
 fdgf e2 de | fd (3ddd fdgd | fdgf edBc | dBBA BAGF | GFEG FDD e || fd (3ddd fdgd | fdgf edBc | 
 dBBA Bcde | fdgf e2 fg | a3 f edBc | defd BAFD | A,D (3DDD A,DFA | BFAF DCDB, ||  