Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
M:9/8
K:D
['A2 F', 'ded d2'  
X:1
L:1/8
M:9/8
K:D
|: DED A2 F A2 F | DED A2 F E2 F | DED A2 F A2 F | BdB A2 F D3 :: ded d2 B A3 | ded d2 F E3 | 
 ded d2 B A2 F | BdB A2 F D3 :|  