first attempt at a plotting macro