updated plotting. A good example