Compose a piece incorporating the provided motif while adhering to the given musical structure.
X:1
L:1/8
M:4/4
K:D
['AG FdAF d2']  
X:1
L:1/8
M:4/4
K:D
|: AG | FdAF d2 AG | FdAF d2 ed | ceAc eAce | AecA (3BcB AG | FdAF d2 AG | FdAF d2 ed | ceAc eABc | 
 dfec d2 :|  