Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
M:2/4
K:A
['ea c>d ea a/f/e/d/', 'a2 fe/f/ ae d>B ea a/f/e/d/'  
X:1
L:1/8
M:2/4
K:A
 A/B/ | ce dc/d/ | ea c>d | ea a/f/e/d/ | cA BA/B/ | cA d/4e/4d/c/d/ | ea c>d | ea a/f/e/d/ | 
 cA A>B | cA/c/ dc/d/ | ea c>d | ea a/f/e/d/ | cA B/4c/4B/A/B/ | c2 d2 | ea c>d | ea a/f/e/d/ | 
 c/c/A A2 |: a2 fe/f/ | ae d>B | ea a/f/e/d/ | cA B2 | a2 fe/f/ | ae d>B | ea a/f/e/d/ |1 cA A2 :|2 
 cA A>B ||  