Construct a musical composition utilizing the provided motif and conforming to the specified structure.
X:1
L:1/8
M:4/4
K:D
['D2 FA dAFA', 'f2 fg fedA (3Bcd'  
X:1
L:1/8
M:4/4
K:D
|: D2 FA dAFA | G2 GF GFEF | D2 FA dAFA |1 (3Bcd eg fd d2 :|2 (3Bcd eg fd de || f2 fg fedA | 
 (3Bcd Ad BdAd | f2 fg fedA | (3Bcd eg fdde | f2 fg fedA | (3Bcd Ad BdAd | (3Bcd ef g2 ge | 
 a2 ag fd d2 ||  