Compose a musical piece using the given motif and adhering to the outlined musical form.
X:1
L:1/8
M:3/4
K:D
['B2 AGA B d4 A3 Bd d']  
X:1
L:1/8
M:3/4
K:D
 B2 | AGA B d4 | A3 Bd d |[M:3/4] BG | A4 z B/B/ | D3 DE G | A4 BA |[M:2/4] GAG E |[M:3/4] D4 z2 |]  