implement a simualtor to test the particle filter