Craft a music piece according to the prescribed structure and the input theme.
X:1
L:1/8
M:2/2
K:D
['', 'a2 a2 agfe f2 f2{g} fedf efed', 'gage dcBA G2 G2 D B2 D', 'FDEF GAGE DCB,C D B2 D BD'  
X:1
L:1/8
M:2/2
K:D
 fg |: a2 a2 agfe | f2 f2{g} fedf | efed cABc | dfeg fagb | a2 a2 agfe | f2 f2{g} fedf | 
 efed cABc |1 dfec d2 fg :|2 dfec d4 |:[K:G] Bdgd Bdgd | Adfd Adfd | Bdef gage | dcBA G2 G2 :: 
 D B2 D BD B2 | E c2 E cE c2 | ABAG FDEF | GAGE DCB,C | D B2 D BD B2 | E c2 E cE c2 | ABAG FDEF |1 
 GBAF G2 G2 :|2 FGAF G2 ||  