New code for Dimension Tutorial