Updated answer from in class discussion

* still a bit complex of a topic but was very helpful to see how it was done

ß