Craft a musical piece that abides by the prescribed structural guidelines and the given theme.
X:1
L:1/8
M:3/4
K:D
['a2 fa fa ag (3efg (3efg a2', 'e>c d2'  
X:1
L:1/8
M:3/4
K:D
 a2 fa fa | ag (3efg (3efg | a2 fd e>c | d>e f>a (3^gfg | a2 fa fa | ag (3efg (3efg | a2 fd e>c | 
 (3ABc d4 :: A2 df e>c | d2 f>a (3^gfg | a2 fd e>c | d2 ef d>c | A2 df e>c | d2 f>a (3^gfg | 
 a2 fd e>c | (3ABc d4 :|  