Added getter and setter for dimensions