How to implement Stable Diffusion (a practical guide)