Using the given motif, compose a musical work that follows the prescribed musical form.
X:1
L:1/8
M:4/4
K:C
['d2{e} (dB) ABAF d2', 'fdAd fdad'  
X:1
L:1/8
M:4/4
K:C
[M:2/2][K:D] .abc d2{e} (dB) ABAF | d2 (AF) Agfe | dedF ABAF | GFEF GABc | d2{e} (dB) ABAF | 
 d2 (AF)Agfe | dedF ABAG | GBAG (FD)D || g | fdAd fdad | fdAd ceeg | fdAd fdad | bage fddg | 
 fdAd fdad | fdAd ceeg | (3(fga) (ge) fdec | cABG (FD)D z |]  