Compose a piece of music that integrates the given motif and follows the specified musical form.
X:1
L:1/4
M:3/4
K:G
['A B', 'A B'  
X:1
L:1/4
M:3/4
K:G
|: B/A/ | G2 A/B/ | G g2 | f2 d | e g2 | d2 B/A/ | G A B |1 A B G | E2 :|2 A B/G/ F | G2 || B | 
 d2 e/f/ | g2 d | e2 f/g/ | d/B/- B2 | e2 f/g/ | d/B/- B2 | A B G | E2 B/A/ | G2 A/B/ | G g2 | 
 f2 d | e g2 | d2 B/A/ | G A B | A B G | G2 ||  