Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
M:2/2
K:D
['B AFDF EFGB AFDF AddB AFDF EFGA', 'dfeg fdcA dfeg faaf'  
X:1
L:1/8
M:2/2
K:D
 B | AFDF EFGB | AFDF AddB | AFDF EFGA | AFdF (Ad) d :| A | dfeg fdcA | dfeg faaf | gefd ecBA | 
 (B/c/d) (AF) AddA | dfeg fdcA | dfeg faaf | (3gab (3fga (3efd (3cBA | (3Bcd (3AGF (A<d) d |]  