Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/8
M:4/4
K:D
['A,B,DE FDED B,EED', 'd2 fd adfd edBd edBA'  
X:1
L:1/8
M:4/4
K:D
|: A,B,DE FDED | B,EED EDB,D | A,B,DE FABc | dBAG FDDD | A,B,DE FDED | B,EED EDB,E | A,B,DE FABc | 
 dBAG FDDD :: d2 fd adfd | edBd edBA | defa defa | e2 de fddc | d2 fd adfd | edBd edBA | 
 faab afdf |1 gefd e4 :|2 e2 de fd d2 ||  