Create a musical piece that includes the provided motif while adhering to the necessary musical structure.
X:1
L:1/8
M:2/2
K:D
['A>BAF (A<d)f>d (A<F)ED E>DEF A>BAF (A<d)fd (A<F)EF', 'D2 f>gfe dBdB (A<d)fd edBd A>GFd B>AGg'  
X:1
L:1/8
M:2/2
K:D
|: A>BAF (A<d)f>d | (A<F)ED E>DEF | A>BAF (A<d)fd | (A<F)EF D2 D2 :: f>gfe dBdB | (A<d)fd edBd | 
 A>GFd B>AGg | fdaf (f2 e2) | d>efe dcBd | e>fgf edca | f>edB A<dfd | A<FE>F D2 D2 |]  