Edit: function application was not done; fixed

https://www.youtube.com/watch?v=9ooqgBi6j_k