Educative code on Slave Particles