class is zero based.