Create a musical piece that includes the provided motif while adhering to the necessary musical structure.
X:1
L:1/8
M:2/4
K:D
['BBAG FAAA']  
X:1
L:1/8
M:2/4
K:D
 z AAA | BBAG | FAAA | BBAG | FAAA | d2 cB | A2 Bc | d2 z2 |]  