Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/16
M:2/4
K:D
['f2f2 d2ef g2g2 e4 c2c2 A2Bc', 'a2a2 f2d2 B2Bc'  
X:1
L:1/16
M:2/4
K:D
 f2f2 d2ef | g2g2 e4 | c2c2 A2Bc | dcde fgag | f2f2 d2ef | g2g2 e4 | c2c2 A2Bc | d4 D4 :: 
 a2a2 f2d2 | B2Bc dcdB | A2a2 f2d2 | edef e4 | a2a2 f2d2 | B2Bc dcd/B | A2a2 f2d2 | edef d4 :|  