quant program basic