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:Dmix
['', 'AD (3DDD', 'Ad (3(d^cd)'  
X:1
L:1/8
M:4/4
K:Dmix
 dB |: AD (3DDD (F{G}F{E}F)G | AD (3DDD c2 BG | ADDE FEFG | AdcA G2 FG :| Ad (3(d^cd) AGFG | 
 Ad (3(d^cd) fdec | Ad (3(d^cd) AGFG | AB{cd}cA (3(GAG) FG | Ad (3(d^cd) AGFG | Adde f{a}fefg | 
 af (3gfe fde^c | dcAF G2 dB ||  