Just for illustrative/educational purposes. Here are two methods with identical results.