Craft a music piece according to the prescribed structure and the input theme.
X:1
L:1/8
M:2/2
K:D
['A2 AB AFED', 'f2 fd'  
X:1
L:1/8
M:2/2
K:D
 A2 AB AFED | B2 BA BcdB | A2 AB AFED | gfed BcdB | A2 AB AFED | B2 BA BcdB | FAAB AFED | 
 gfed Bcde || f2 fd g2 ge | f2 fd Bcde | f2 fd g2 fg | afed Bcde | f2 fd g2 ge | f2 fd Bcde | 
 defg afbf | gfed Bcde ||  