this is a tutorial for my students to understand gradients