Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/8
Q:1/8=180
M:6/8
K:D
['e2 d B2', 'e f2'  
X:1
L:1/8
Q:1/8=180
M:6/8
K:D
|: B | A2 F ABd | e2 d B2 d/B/ | ABA GFG | A3 ABd | ege dBd | e2 d B2 e | f2 a e2 f | d3 d2 :: e | 
 f2 d d2 d | e2 d B2 e | f2 d a2 f | a3 a2 e | f2 d d2 d | e2 d B2 e | f2 a e2 f | d3 d2 :|  