- simplified the Dimensions class