Compose a piece of music based on the provided motif and adhering to the outlined musical structure.
X:1
L:1/8
Q:3/8=110
M:6/8
K:G
['B/c/ d2 d e2 d B2 B', 'g fef def g3', 'B e2 e g2 g fef B2'  
X:1
L:1/8
Q:3/8=110
M:6/8
K:G
 B/c/ |"_As written" d2 d e2 d | B2 B d2 c | A2 A AGA | B3 G2 B/c/ | d2 d e2 d | B2 B d2 c | 
 A2 A AGA | G3- G2 || g | fef def | g3 d2 B | c2 d B2 c | B3 A2 g | fef def | g3 e3 | c2 ABc | 
 dfe dBc || B | e2 e g2 g | fef B2 B | c3 A F2 B | G3 E2 B | e2 e g2 g | fef B2 B | c2 A F2 B | 
 EFG ABc |]  