Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
M:3/8
K:G
['GAB dcA BGB A2 z ABc edB']  
X:1
L:1/8
M:3/8
K:G
 GAB | dcA | BGB | A2 z | ABc | edB | dcA | G2 z | AAA | Afd | ^cBc | d3 | BBB | d>cB | AGA | 
 G2 z |]  