Formulate melodies by adhering to the specified pattern and supplied motif.
X:1
L:1/8
M:2/2
K:G
['B3 d'  
X:1
L:1/8
M:2/2
K:G
"G" G3 D"C" EDEG |"D" AGAB"G" d2 Bd |"C" eged"G" BAGA |"Em" BAGE"D" EDDE |"G" G2 GD"C" EDEG | 
"D" AGAB"G" d2 Bd |"C" eged"G" BAGA |1"Em" BAGE"D" EDDE :|2"Em" BAGE"D" EDDd |:"Am" eaag"C" efge | 
"G" dBBA B3 d |"Em" eBBB egfg | eBBA B3 d |"Am" eaag"C" efge |"G" dBBA B3 d |"C" eged"G" BAGA |1 
"Em" BAGE"D" EDDd :|2"Em" BAGE"D" ED D2 |]  