added plotting.
added plotting