implement a first version of "rub"