quants code