Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:3/4
K:G
['d3 BcA']  
X:1
L:1/8
M:3/4
K:G
 ded | d3 BcA | AGGGBG | GFFAdc | B2 z BdB | BAAcec | cBBBdB | A3 AAc | B2 z BBc | d3 cBc | 
 dggdge | d3 BcA | G2 z |]  