Using the given motif, compose a musical work that follows the prescribed musical form.
X:1
L:1/8
M:2/2
K:D
['B AFGE FA d=c BGAF Egfe dAB^G', 'dDd=c BGAF Ebag'  
X:1
L:1/8
M:2/2
K:D
 B | AFGE FA d=c | BGAF Egfe | dAB^G Abag | fdef dD-D :| g | fdef dDd=c | BGAF Ebag | fdec dAag | 
 fdef (dDDg) | fded dDd=c | BGAF Ebag | .f.a.g.b .e.g.f.a | .A.d.c.e f(d[Fd]) ||  