Construct a musical composition following the designated musical form and incorporating the given motif.
X:1
L:1/8
M:2/2
K:G
['dged BdAd BGAG EA(3AAA B3 d cdeg', 'c d g3'  
X:1
L:1/8
M:2/2
K:G
|: dged BdAd | BGAG EA(3AAA | B3 d cdeg | fgaf gfec | dged BdAd | BGAG EA(3AAA | B3 d cdeg |1 
 fd (3cBA G2 Bc :|2 fgaf g2 ef |: g2 af gfec | dged B3 c | d g3 gfec | dega bgaf | gbaf gfec | 
 dBed B3 c | d g3 gfeg |1 fgaf g2 ef :|  