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
['A2 (A/B/c/d/) F2', 'B2 A2 AFAB d3 e f>efg f>edA'  
X:1
L:1/8
M:4/4
K:D
 D>F | A2 (A/B/c/d/) F2 AF | E>FED D2 dB | A>FDF A>BAF | A4- A z A2 | A2 (A/B/c/d/) F2 A/F/ | 
 E>FED D2 z F | B3 c dcB^A | B4- B2 || | A2 | AFAB d3 e | f>efg f>edA | d>efA A>BAF | A4- A z A2 | 
 A2 (A/B/c/d/) F2 AF | E>FED D2 d>B | A>BAF GFE>F | D4- D z ||  