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
['cA A/A/A (fd)ec', '(ag) fedc'  
X:1
L:1/8
M:2/2
K:D
 cA A/A/A (fd)ec | dEEF GABd | cA A/A/A (fd)ec | defg aAAd :| A2 (ag) fedc | B2 (ba) gfed | 
 c2 (ag) fedc | defg aAAd | Aaag fedc | Bbba gfed | c/c/c (Ac) dBBc | defg afed ||  