This version produces good plot