added three-dimensional visualization.