Construct musical compositions utilizing the given motif within the outlined structure.
X:1
L:1/4
Q:1/2=90
M:4/4
K:D
['A d', 'B A'  
X:1
L:1/4
Q:1/2=90
M:4/4
K:D
|: A | d c d e | f3/2 e/ d c | B A B/c/d/B/ | A G F A | d A d e | f3/2 e/ d c | B A B c | d2 d :: 
 A | B A F A | B A F d/d/ | d c/c/ c B/B/ | B A A d/d/ | d c c e/e/ | e d d f | f e B c | d2 d :|  