Develop melodies according to the outlined musical structure, including the given motif.
X:1
L:1/8
M:2/2
K:A
['cBAa (3(fga)', '(3(cBA) (ec)'  
X:1
L:1/8
M:2/2
K:A
 (ed) | cBAa (3(fga) ec | dfec B2 (Bd) | cBAa (3(fga) ec | dgec A2 (Ad) | cBAa (3(fga) (ec) | 
 dfec B2 (Bd) | cefg agbg | afed cAAd || (3(cBA) (ec) fAeA | (3(cBA) (ec) B2 (Bd) | 
 (3(cBA) (eA) fAeA | dfed cAAd | (3(cBA) (ec) fAeA | dfec B2 (Bd) | cefg agbg | afec A2 |]  