Rack and cam