updated the puts and array.to_s. added print
forgot to update dom.element for the Class change