Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/8
M:2/2
K:D
['A d2 (fd) A/A/A fd egfe dBBc', 'ABFA BEEB'  
X:1
L:1/8
M:2/2
K:D
 A | d2 (fd) A/A/A fd | egfe dBBc | d (fd) egfe | dBAF D/D/D D :| B | AD[FA]A B2 cd | ABFA BEEB | 
 ADFA BcdA | GdAF D/D/D (DB) | ADFA B2 (Bd) | ABFA BEEB | AFGA Bcde | fdef d/d/d d ||  