Made a correction to the signature of the divide_queue function and made the sampling example a little bit easier