Construct a musical piece that follows the designated lettered structure and integrates the provided motif throughout.
X:1
L:1/8
M:4/4
K:D
['', 'd2 cd BE E2', 'd2 fd']  
X:1
L:1/8
M:4/4
K:D
 (3ABc |: d2 cd BE E2 | (3FED AD FDFA | d2 cd BE E2 | (3Bcd ec d2 (3ABc :| d2 fd adfd | 
 d2 fd cdec | d2 fd adfd | dBAF EDFA | d2 fd adfd | d2 fd cdec | defd cdec | BABc dAFA ||  