Construct a musical composition following the designated musical form and incorporating the given motif.
X:1
L:1/8
Q:1/4=120
M:4/4
K:D
['f d/d/d d>A F>GA>=c G>=cE>c G>ce^c d/d/d', '(f/e/d) A>d (f/e/d)'  
X:1
L:1/8
Q:1/4=120
M:4/4
K:D
 f | d/d/d d>A F>GA>=c | G>=cE>c G>ce^c | d/d/d dA FGA=c | GE=cE D2 D :| f | 
 d2 (f/e/d) (a>d) (f/e/d) | A>d (f/e/d) b>ee>f | d2 (f/e/d) a>d (f/e/d) | F>Dg>e f>(dd)f | 
 d2 f/e/d ad (f/e/d) | A>d (f/e/d) e>BBe | d>fe>g f>bag | f>de>c d>DD |]  