Compose a musical piece in accordance with the outlined theme and structure.
X:1
L:1/8
Q:1/4=100
M:2/4
K:D
['dFAd cdef', 'd2 fg agfe dfga bgec d/e/f/g/ ab'  
X:1
L:1/8
Q:1/4=100
M:2/4
K:D
|: z (3A/B/c/ | dFAd | cdef | gece | d/e/f/g/ aA | dFAd | cdef | ge d/c/B/c/ | d2 :: fg | agfe | 
 dfga | bgec | d/e/f/g/ ab | agfe | dbag | face | d2 :|  