Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
M:2/4
K:G
['d3 d dcEc cBDB']  
X:1
L:1/8
M:2/4
K:G
 B | BDDB | BDDB | BBcB | A2 z A | AGFE | BAAA | AGFE | D2 z D | DDEF | AGGB | ddcA | d3 d | dcEc | 
 cBDB | BABc | d3 d | dcEc | cBDB | BAEF | G2 z |]  