Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
Q:1/8=360
M:4/4
K:C
['D2 FD DFAF DGBG FGAc dcdA Bede', 'fgab agfa'  
X:1
L:1/8
Q:1/8=360
M:4/4
K:C
[K:D] D2 FD DFAF | DGBG FGAc | dcdA Bede | fdgf ecAF | D2 FE DFAF | (3GGG BG FABc | dcdA BGBd | 
 AGFE (3DED CE | D2 FD DFAF | DGBG FGAc | dcdA Bede | fdgf ecAG | FAEA DFAF | (3GGG BG FABc | 
 dcdA BGBd | AFEF D2 || ag | fgab agfa | gfef fdBc | dBAF ABde | fagf e^deg |1 fgab agfa | 
 (3gag (3fgf edBc | dBAF AdAF | EDEF D2 :|2 fgab agfa | g2 ba gfec | dcBA BcdB | AGFE DA,B,C ||  