Constructed the Coordinate class as inheriting from the Dimension class