Add visualization code

package code provided by the instructor. I will promote the glue code
next.