Added draw cartesian graph function