script checks student progress appropriately