Update dimensions and class