Adding drawing routines to example.