Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:4/4
K:G
['', 'BA GEDB, D3 E G2 GF GABd', 'Beed e2 ef ge (3fed'  
X:1
L:1/8
M:4/4
K:G
 BA |: GEDB, D3 E | G2 GF GABd | e2 ed efge | dBAG A2 BA | GEDB, D3 E | G2 GF GABd | e2 ed efge |1 
 dB (3ABA GABA :|2 dB (3ABA G2 GA |: Beed e2 ef | gefd edBA | Beed e2 ef | ge (3fed e2 e2 | 
 Beed e2 ef | ge (3fed edBd | e2 ed efge |1 dB (3ABA G2 GA :|2 dB (3ABA GABA ||  