add result and code for visualizing the result