Added class.index.inc.php for index calculation API