added solution for InverseFunction problem. That was a lot of fun.