Using the given motif, compose a musical work that follows the prescribed musical form.
X:1
L:1/8
M:2/4
K:G
['B A']  
X:1
L:1/8
M:2/4
K:G
 d2 g e | d2 B A | d2 g e | d g B A | G3 E | d e d d | E G B A | G4 | B G A2 | A d B/ d/ B/ A/ | 
 d G A2 | A d B d | g B A/ B/ A/ G/ | G E D D | d d d G | A B A E | D4 |]  