Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/8
Q:1/8=320
M:4/4
K:D
['d>efd e>fge']  
X:1
L:1/8
Q:1/8=320
M:4/4
K:D
 f | d>AAB AFAB | dAA<A f2 ef | dBB<B BABd | ABde fge>f | d>efd e>fge | d>efd e2 dB | d>efd e>fge | 
 aAA<A f2 ef | d>efd e>fge | d>efd e2 dB | d>efd e>fge | f/g/a Ag fgef ||  