Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
M:3/4
K:D
['A3 G F2']  
X:1
L:1/8
M:3/4
K:D
 DE | F4 F2 | A3 G F2 | E3 F G2 | F4 A2 | A2 E2 F2 | G4 B2 | B4 A2 | F4 DE | F4 F2 | A3 G F2 | 
 B4 B2 | d3 c B | A4 A2 | A3 G F2 | E6 | A6 | F6 |]  