Finished Lecture 9

Added visualization code and LaTex output code