added plot method