Construct a piece of music using the designated motif as the basis, while ensuring the required form is followed.
X:1
L:1/8
M:4/4
K:Emin
['B2 AG', 'B2 AG', 'EB B2'  
X:1
L:1/8
M:4/4
K:Emin
|: EFGA B4 | BABd B2 AG | FD D2 AD D2 | FGAB A2 GF | EFGA B3 B | BABd B2 AG | FD D2 B2 AG | 
 F2 E2 E3 D :: EFGA BE E2 | dE E2 B2 AG | FD D2 AD D2 | FGAB A2 GF | EFGA BE E2 | dE E2 B2 AG | 
 FD D2 B2 AG | F2 E2 E3 D :: EB B2 dB B2 | EB B2 dBAG | FD D2 AD D2 | FA A2 dBAF | EB B2 dB B2 | 
 EB B2 d2 AG | FD D2 B2 AG | FE E2 E2 B2 :|  