Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:4/4
K:D
['e3 c A2 ce d3 ecAFA B3']  
X:1
L:1/8
M:4/4
K:D
 AF | D3 DDF A2 | d3 A G3 A | F3 AGEDC | D3 D D2 cd | e3 c A2 ce | d3 ecAFA | B3 cdBAF | A2 Bdd | 
 e3 c A2 ce | d3 ecAFA | B3 cdBAF | A2 Bdd/FE | D3 DDF A2 | d3 A G3 A/G/ | F3 AGEDC | D3 D D2 |]  