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
['AD{G} ED', 'f2 d2 fe dBAB :|2 a3 b'  
X:1
L:1/8
M:2/2
K:D
|: AD{G} ED A3 B | AD{G} ED EFGB | AD{G} ED{B} A2 (3ABc |1 d2{g} fe dBBd :|2 d2{g} fe dBBA |: 
 df f2 af f2 | defd e3 f |1 df f2 af f2 | d2 fe dBAB :|2 a3 b afeg | fedB BcdB |]  