Develop a musical composition by incorporating the suggested motif and by following the prescribed format.
X:1
L:1/8
Q:1/8=180
M:4/4
K:G
['D2 DE', 'G2 gd^cd fgaf gfga bgag fdcd fgag'  
X:1
L:1/8
Q:1/8=180
M:4/4
K:G
 D2 DE FEFD | GFGB AGAF | D2 DE FEFG | AdcA G2 G2 :| gd^cd fgaf | gfga bgag | fdcd fgag | 
 fdcA G2 G2 :|  