Compose a musical piece utilizing the given motif as the foundation while maintaining the required musical form.
X:1
L:1/8
M:3/4
K:Eb
['B,>A, G,2']  
X:1
L:1/8
M:3/4
K:Eb
 B,2 | E3 DCB, | B,>A, G,2 B,2 | E>C B,2 DC | B,2 z2 B,2 | E3 DCB, | B,>A, G,2 B,2 | E>C B,2 DC | 
 B,2 z2 B,2 | F3 FFE | E>D D2 C2 | B,3 C/B,/A,G, | G,2 F,2 B,2 | E3 DCB, | B,>A, G,2 E2 | 
 F>F E2 D2 | E2 z2 G,A, | B,>A, G,2 F,2 | E,2 z2 |]  