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:A
['af eAAc eAce fedf eaga fedc', 'a2 gbeg begb aAce agfe fedc']  
X:1
L:1/8
M:4/4
K:A
|: af | eAAc eAce | fedf eaga | fedc dcBA | G2 B2 B2 af | eAAc eAce | fedf eaga | fedc dBed | 
 c2 A2 A2 :| a2 | gbeg begb | aAce agfe | fedc dcBA | G2 B2 B2 a2 | gbeg begb | aAce agfe | 
 fedc dBed | c2 A2 A2 a2 | gbeg begb | aAce agfe | fedc dcBA | G2 B2 B2 af | eAAc eAce | 
 fedf eaga | fedc dBed | c2 A2 A2 ||  