Construct a musical piece that follows the designated lettered structure and integrates the provided motif throughout.
X:1
L:1/8
Q:1/8=160
M:6/8
K:D
['faf gab', 'e2 d f2 e dAA BAA dcd']  
X:1
L:1/8
Q:1/8=160
M:6/8
K:D
 d | faf gab | faa afd | faf gab | afd e2 d | faf gab | faa afd | fef dBA | Bdf e2 :| d | 
 f2 e dAA | BAA dcd | gfe dAA | Bdf e2 d | f2 e dAA | BAA dcd | gfe dAA | Bdf e2 :|  