implemented basic plotting