Compose a piece incorporating the provided motif while adhering to the given musical structure.
X:1
L:1/8
M:4/4
K:D
['f4 fe/f/ g>c d4 d4', 'B4 BcdB A4 AdcB A2 Ad cdec'  
X:1
L:1/8
M:4/4
K:D
|: f4 fe/f/ g>c | d4 d4 | f4 fe/f/ g>c | d4 d4 | g4 gdde | f4 fa (3agf | e4 ef g>c | d4 d4 :: 
 B4 BcdB | A4 AdcB | A2 Ad cdec | d4 dAdc | B4 BcdB | A4 AdcB | A2 Ad cdec | d4 d4 :|  