curve plot part 1