dimension, toString, equals implement