Construct a piece of music using the designated motif as the basis, while ensuring the required form is followed.
X:1
L:1/4
M:4/4
K:G
['e f g2', 'd4 A2 B2 A G F2 A2'  
X:1
L:1/4
M:4/4
K:G
 e f g2 | e f g2 | d e f/g/f/e/ | d e f2 | e f g2 | e f g2 | d e f/e/ c | d4 :| A2 B2 | A G F2 | 
 A2 d e | f4 | g f e2 | f e d2 | f a f/e/ c | d4 :|  