Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/16
M:2/4
K:D
['f a']  
X:1
L:1/16
M:2/4
K:D
 f a f e f4 | A2 A B d4 | d e f a A B d2 | f e c B A4 | f a f e f a f e | A A A B d4 | 
 d e f a A B d2 | f a c B A4 |]  