added plotting script for 3