Construct a musical composition utilizing the provided motif and conforming to the specified structure.
X:1
L:1/8
M:4/4
K:A
['A2 ag fefa', 'A2 cA eccf'  
X:1
L:1/8
M:4/4
K:A
 c2 | A2 ag fefa | c2 c>d c2 c>B | A2 ag fefa | B2 B>c BdcB | A2 ag fefa | c2 c>d c2 ce | 
 f2 fe fefg | afec B2 || c2 | A2 cA eccf | c2 c>B c2 ca | A2 cA eccf | B2 B>A B2 Bc | A2 cA eccf | 
 c2 cB c2 ce | fgfe f2 ef/g/ | afec B2 |]  