std_dev and avg can be calculated
implementing index. but not finished yet
index works