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
['A,2 D2 D2 DDEE DD B,2 A,4']  
X:1
L:1/8
M:2/2
K:D
 A,2 | D2 D2 DDEE | DD B,2 A,4 | D4 E4 | F6 D2 | F2 F2 FFAA | AA E2 D4 | F4 E4 | DDCC D2 |]  