Form a musical piece based on the provided motif while observing the defined structure.
X:1
L:1/8
Q:3/8=120
M:6/8
K:D
['F2 A', 'a2 f'  
X:1
L:1/8
Q:3/8=120
M:6/8
K:D
 A,2 E F2 A | d2 f ecA | G2 B F2 A | E2 d AFD | A,2 E F2 A | d2 f ecA | B2 g edc | d3 D3 :: 
 a2 f d2 A | F2 f a2 f | g2 e c2 A | E2 f gfe | a2 f d2 A | F2 A d2 A | B2 g edc | d3 D3 :|  