Simplified the dimensions method