rewritten dim_reduction demo to match new style of getters and setters