Craft a musical piece that abides by the prescribed structural guidelines and the given theme.
X:1
L:1/8
M:2/2
K:D
['B AFdF AFDB Afde c2 (EF/G/) AFdF', '(d/e/f/g/ a)f bgag'  
X:1
L:1/8
M:2/2
K:D
 B | AFdF AFDB | Afde c2 (EF/G/) | AFdF AFAg | fdef d/d/d d :| (d/e/f/g/ a)f bgag | 
 f>edf e/e/e e2 | (d/e/f/g/ a)f bgag | f>def d/d/d d | (d/e/f/g/ a)f bgag | f>edf e/e/e e2 | 
 (d/e/f) (e/f/g) (f/g/a) (e/f/g) | fdef d/d/d d ||  