Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
M:4/4
K:A
['c2 ec fddf', 'a2 ec'  
X:1
L:1/8
M:4/4
K:A
 d | c2 ec fddf | ecA=c B=GGB | c2 ec fddf | ecBc A/A/A A :| g | a2 ec fddf | a2 ec B/B/B Bg | 
 a2 ec fddf | ecBc A/A/A Ag | a2 ec fddf | a2 ec B/B/B Bg | agfe fgaf | ecBc A/A/A A ||  