Create a piece of music utilizing the given motif and adhering to the specified structure.
X:1
L:1/8
M:2/4
K:none
["F/A/d/f/ a>f gg c>a c'c'", 'Bd cc A2 G/A/B/c/', 'bb Pgd Bd :|2 bB/d/ g2 f>f', "c'/b/ a>e ee e2 ba g>d dd"  
X:1
L:1/8
M:2/4
K:none
[K:D] F/A/d/f/ a>f | gg c>a | c'c' g>c' | d'd' !>!f2 | F/A/d/f/ a>f | gg c>a | c'c' c'/b/g/e/ | 
 df d z ::[K:A] e/f/e/d/ Bd | cc A2 |"_#" G/A/B/c/ d/e/f/"_#"g/ | a/"_#"g/a/b/ c'2 | e/f/e/d/ Bd | 
 cc A2 |"_#" G/A/B/c/ d"_#"g |1 aa a z :|2 a=g f"_>Teil A" e |:[K:G] b3 g/g/ | g3 f/f/ | e3 d/^c/ | 
 d3 e/d/ | c>d"_c" c'c' |1 f3 d | B>d bb | Pgd Bd :|2 bB/d/ g2 | a"_c"c/d/ f>f | gg g"_c"c'/b/ || 
 a>e ee | e3 b/a/ | g>d dd | d3 a/g/ | f2"_c" c'2 | b2 a2 | g>g e'e' | d'3"_c" c'/b/ | a>e ee | 
 e2 ba | g>d dd | d2 ag | e/e/e"_c" c'/c'/c' | b/b/b dg | a/a/a df | gg g z |]  