Added a draw function in the style of Andrews graphics library.