You have a typo in the second function.
EDIT: Thank you, and case closed.
Reply on news.ycombinator.com