Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
Q:1/8=200
M:2/4
K:D
['d cAAA ceec dcBc d3 E F>GA>F', 'd3 d', 'd3 d c>eA>B c>de>c d>fB>c d3 z'  
X:1
L:1/8
Q:1/8=200
M:2/4
K:D
 d | cAAA | ceec | dcBc | d3 E | F>GA>F | G>AB>G | A2 c2 | d3 || d | cAAA | ceec | dcBc | d3 d | 
 c>dB>c | A>Bc>A | EFEC | D3 E | EDEF | (GF)(GE) | F2 D2 | G3 z | F>GA>F | G>AB>G | A2 c2 | d3 || 
 d | c>eA>B | c>de>c | d>fB>c | d3 z | F>GA z | G>AB z | A2 c2 | d3 ||  