Construct a musical composition utilizing the provided motif and conforming to the specified structure.
X:1
L:1/8
M:4/4
K:D
['a3 f', 'e2 A>A f2 d>d'  
X:1
L:1/8
M:4/4
K:D
 (3a/b/c'/ | d'4 a3 f | dcde f2 d>d | cAdA eAfd | e2 A>A A2 f/>g/ | a3 f dddd | e3 c A2 A2 | 
 Bc/d/ fe/d/ cedB | A2 A>A A3 :: c>d | e2 A>A f2 d>d | e2 A>A f2 d>d | ggfe d2 c2 | B2 B>B BABc | 
 d3 A fdaf | d2 cB A2 g2 | (3fef ge dfec | d2 d>d d2 :|  