Create a composition based on the provided motif while adhering to the necessary musical structure.
X:1
L:1/4
Q:1/8=180
M:2/2
K:G
['d g', 'e f d e c'  
X:1
L:1/4
Q:1/8=180
M:2/2
K:G
 D/ |"G" G/F/G/A/ B/A/B/c/ | d g B B |"D" d g d g |"G" d g B A |"G" G/F/G/A/ B/A/B/c/ | d g B c | 
"D" d d c/B/ A g :|[K:D] f/g/ |"D" a f"A7" g/4f/4 e |"D" f d e2 | f d e2 | f d e f/g/ | 
 a f g/f/ e/ | f d e | f d e c | d2 :|  