line graph implemented