Create a melody following the provided musical guidelines.
'Ternary', 'Sectional: Verse/Chorus/Bridge'  
X:1
L:1/8
M:2/4
K:D
 d | gddd | dBBB | cBcd | e2 z f | gfed | g>aba | g2 f2 | g2 :| f/g/ | aaaa | bagg | bbbb | 
 c'aa>a | b>ga>f | g>efg | a>b a/g/f/e/ | de d/c/B/A/ | Gddd | dBBB | cBcd | edef | gfed | g>aba | 
 g2 f2 | g2 :: d/B/ | Bgfg | egdg | cd/e/ dc | B2 z d/c/ | Bgfg | e/g/f/g/ | d/g/f/g/ | 
 e c'/b/a/g/f/ | g3 |]  