Compose a musical piece using the given motif and adhering to the outlined musical form.
X:1
L:1/8
M:6/8
K:D
['a2) (A', '(c B>AG'  
X:1
L:1/8
M:6/8
K:D
 (f | f>ed a2) (A | e)ee e2 (g | f>ed a2) (A | d)dd d2 (f | f2 d a2) (A | e)ee e2 (g | 
 f>ed a2) (A | d)dd d2 || (c | B>AG F>ED) | eee e2 (c | B>AG F>ED) | ddd d2 (c | B>AG FED) | 
 eee e2 (d | c>BA GFE) | ddd d2 ||  