Craft a music piece according to the prescribed structure and the input theme.
X:1
L:1/8
M:2/4
K:G
['D G>ABc dd/^c/dg dgdg d2 z d']  
X:1
L:1/8
M:2/4
K:G
 D | G>ABc | dd/^c/dg | dgdg | d2 z d | c>BAG | FEDd | GdGd | G2 z |]  