Create melodies by incorporating the provided musical pattern and motif.
X:1
L:1/8
Q:1/8=180
M:4/4
K:G
['A2 Ag', 'gfed cAeA fAeA'  
X:1
L:1/8
Q:1/8=180
M:4/4
K:G
 A2 Ag fdec | A2 Ac BGGB | A2 Ag fdef | gfge dBGB :|[K:D] faaf gfed | cAeA fAeA | faaf gfef | 
 gfge dBGB | faaf gfed | cAeA fAeA | afge fdef | gfge dBGB |"^last time" A8 |]  