A learning process in the praying mantis