Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:4/4
K:D
['d>e g/f/e/c/ .d.A.F.D', 'a>f d/e/f/d/ .g.e .cd/e/ f>d B/c/d/B/ ec'  
X:1
L:1/8
M:4/4
K:D
 A | d>e g/f/e/c/ .d.A.F.D | G7/4E/4F7/4D/4 .E.A,.C.E | d>e g/f/e/c/ .d.A.F.D | G7/4E/4A,C D2 DA | 
 d>e g/f/e/c/ .d.A.F.D | G/F/E/G/ F/E/D/F/ .E.A,.CE | d>e g/f/e/c/ .d.A.F.D | G7/4E/4A,C D3 || 
 f/g/ | a>f d/e/f/d/ .g.e .cd/e/ | f>d B/c/d/B/ ec AB/c/ | d>B .G.B Ad FA | 
 G7/4E/4 F7/4D/4 .E.A .c.e | a>f d/e/f/d/ .g.e .cd/e/ | f>d B/c/d/B/ ec AB/c/ | d>B .GB Ad FA | 
 G>E A,C D3 ||  