Create a composition based on the provided motif, following the specified musical structure.
X:1
L:1/8
M:4/4
K:D
['A>Bd>A B>cd>B', '(3cBA e>A (3cBA'  
X:1
L:1/8
M:4/4
K:D
|: A>Bd>A B>cd>B | A>Bd>A B>cd>B | (3cBA e>A (3cBA e>A | d>ef>g a>f a2 | A>Bd>A B>cd>B | 
 A>Bd>A B>cd>B | (3cBA e>f (3gfe (3ABc |1 (3ded (3ABc d2 dB :|2 (3ded (3ABc d2 a>g || 
 (3faf d>e (3faf d>e | f>da>d b>da>d | (3cBA e>A (3cBA e>A | (3cBA e>f g>ec>g | 
 (3faf d>e (3faf d>e | f>da>d b>da>d | (3cBA e>f (3gfe (3ABc |1 (3ded (3ABc d2 a>g :|2 
 (3ded (3ABc d2 dB ||  