Develop a musical piece that combines the given theme and letter-structured outline.
X:1
L:1/8
M:2/2
K:D
['d2 fd', 'g2 fg a3 f']  
X:1
L:1/8
M:2/2
K:D
 FDFA d2 fd | d2 fd ecAG | FDFA dfed |1 dcAF G2 AG :|2 dcAF G4 |: f3 a g2 fg | a3 g fdde | 
 f3 a g2 fg | a3 f g2 fg | a3 f gfeg | fedf ecAG | FDFA d2 fd |1 dcAF G4 :|2 dcAF G2 AG ||  