Develop musical compositions that maintain the outlined structure and integrate the provided motif
X:1
L:1/8
Q:1/8=232
M:4/4
K:G
['AG EG DG']  
X:1
L:1/8
Q:1/8=232
M:4/4
K:G
 B | d2 GA Bd ge | de dB AG EG | DG BG dG BG | ce ge dc Bc | dG Bd gd Bd | gd bg ag ef | 
 ga (3(gfe) dB ge | dB Ac BG Gf | g2 bg (3(efg) df | gd BG AG EG | DG BG dG BG | ce ge dc Bd | 
 g2 bg ed ge | dB GB AG EG | DG Bd ge ce | dB Ac BG G :|  