Build a musical piece that draws inspiration from the presented melodic structure.
'Ternary', 'Sectional: Verse/Chorus/Bridge'  
X:1
L:1/8
M:4/4
K:D
 ag |"D" (3faf df AdFA | DFAd f2 ef |"A" gbeg ceAF | GABG E2 ag |"D" (3faf df AdFA | DFAd f2 ef | 
"A" gfed cABc |"D" df"A"ec"D" d2 :: EF |"Em" GFGA"G" Bcde |"D" fgfe dcdB | A2 f2 fe f2 | 
"A" G2 e2 ed e2 | GFGA"G" Bcde |"D" fgfe dcdB | Afed"A" cABc |"D" df"A"ec"D" d2 :: ag | 
"D" (3fgf (3efe (3ded (3cdc |"G" (3BcB (3ABA G2 ba | (3gag (3fgf (3efe (3ded | 
"A" (3cdc (3BcB A2 ag |"D" (3fgf (3efe (3ded (3cdc |"G" (3BcB (3ABA (3GAG (3FGF |"A" Efed cABc | 
"D" df"A"ec"D" d2 :|  