Construct a musical composition following the designated musical form and incorporating the given motif.
X:1
L:1/8
M:4/4
K:D
['d2 fd', 'gf e>dc<A BEEB edcA B4 e>dc<A Bcde'  
X:1
L:1/8
M:4/4
K:D
 d2 fd fafd | d2 fd c2 e2 | d2 fd fafd | gfef d3 A | d2 fd fafd | d2 fd c2 e2 | d2 fd fafd | 
 gfef d2 gf || e>dc<A BEEB | edcA B4 | e>dc<A Bcde | faef d2 gf | e>dc<A BEEB | edcA B4 | 
 e>dc<A Bcde | faef d4 ||  