Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/8
M:4/4
K:D
['d2 d2', 'FD (3DDD'  
X:1
L:1/8
M:4/4
K:D
 Addc d2 d2 | Ad (3efg fded | B=cBA FGAB |[M:2/4] =cAGE |[M:4/4] Dddc d2 d2 | Adeg fded | 
 B=cBA G2 AB | =cAGE FD (3DDD || FDGD FD (3DDD | ED =C2 FD (3DDD | FDGF ED=CA, | 
 G,A, =C2 FD (3DDD | FDGD FD (3DDD | ED=CE FD (3DDD | FDGF ED=CA, |[M:2/4] G,A, =CE ||  