Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:2/4
K:G
['cB A2 BA']  
X:1
L:1/8
M:2/4
K:G
 G2 | G2 A2 | B2 cB | A2 BA | G2 GG | AAAA | d2 cB | A2 BA | G2 |]  