Changed order, style change, added posToIndex and implemented getCell.