Using the given motif, compose a musical work that follows the prescribed musical form.
X:1
L:1/16
M:4/4
K:C
['d2AG FDFA BGBd', 'd2f2d2 (3(efg) a2fd Adfa g2ec Aceg fafd'  
X:1
L:1/16
M:4/4
K:C
[M:2/4][K:D] .a2b2c2 (3(ABc) | d2AG FDFA | BGBd cBce | fdge afed | c2e2 egfe | d2AG FDFA | 
 BGBd cAce | dbagfgec | d2f2d2 :: (3(efg) | a2fd Adfa | g2ec Aceg | fafd Bged | cedB Agfe | 
 d2AG FDFA | BGBd cAce | dbag fgec | d2f2d2 :|  