Created own class for Dimensions.