Some exercises in implementing particle filters (PF)