Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:2/4
K:D
['d2 fe d2 A2 BB/c/ AG FEFG', 'd3 d dAB=c B3 e eB^cd e3'  
X:1
L:1/8
M:2/4
K:D
 d2 fe | d2 A2 | BB/c/ AG | FEFG | A3 A | B/c/d/B/ c/d/e/c/ | d3 :: d | dAB=c | B3 e | eB^cd | 
 e3 f | gfed | e2 d/e/f | edcB | A3 A | B/c/d/B/ c/d/e/c/ | d3 :|  