turned into a ruby class