First attempt at a ruby extension