added basic plotting feature