Construct a musical composition following the designated musical form and incorporating the given motif.
X:1
L:1/8
M:4/4
K:D
['eg a2 ab ageg agbg agef g2', 'ed cecA B2 ed', 'cdec BcdB'  
X:1
L:1/8
M:4/4
K:D
|: eg | a2 ab ageg | agbg agef | g2 g2 fgag | f2 d2 d2 :: ed | cecA B2 ed | cAcA E2 ed | 
 cecA B2 ed | c2 A2 A2 ::[K:G] AB | cdec BcdB | ABAF GF E2 | cdec BcdB | c2 A2 A2 :|  