Understanding Green Functions: A Step-by-Step Tutorial