Added Ruby #40. Not happy with this solution at all.