Create a melody following the provided musical guidelines.
'Ternary', 'Sectional: Verse/Chorus/Bridge'  
X:1
L:1/8
M:4/4
K:G
 B3 G ABGE | D2 BA BdAd | BG G2 (3Bcd eg | gedB eA A2 | GDBG A2 GE | D2 BA BdAd | BG G2 Bdeg | 
 gedc BG G2 || dgbg ageg | gedB GA (3Bcd | a3 b ageB | dgbg ageB | dgbg ageg | gedB GABd | 
 a3 g e2 fa | gedc BG G2 ||"^last bar" gedB G2 G2 ||  