Compose a piece incorporating the provided motif while adhering to the given musical structure.
X:1
L:1/8
Q:3/8=120
M:9/8
K:D
['d2 e fed B2 A', 'DEF FGA', 'aff afe'  
X:1
L:1/8
Q:3/8=120
M:9/8
K:D
|: d2 e fed B2 A | def gfe c2 A | d2 e fed B2 A | agf edc d3 :: DEF FGA ABc | DEF FGA E2 D | 
 DEF GAB cde | afe dce d3 :: aff aff afe | aff afe dBA | aaa aaa aaa | ABc cec d3 :|  