Compose melodies adhering to the given motif and the outlined musical structure.
X:1
L:1/8
M:6/8
K:D
['FGA |:S D2', 'Bcd e2 g fdA FGA eAf AgA', 'B2 A'  
X:1
L:1/8
M:6/8
K:D
 FGA |:S D2 A Bcd | e2 g fdA | FGA eAf | AgA aba | fga gag | e z g fga |1 eAf gAf | ecA FGA :|2 
 fdA ecA | d z c Bcd || F2 d d2 c- | cdc AcB | G2 A Fdc | B2 A Bcd | F2 d d2 c- | cdc AcB | 
 GBA B2 d- | dcB Bcd | F2 d (3ded c- | cdc AcB | G2 A Fdc | B2 A Bdc | B2 A edc | d2 e fBc | 
 def gag | ecA FGA ||  