first attempt at graph d

n values seem a bit off