update line graph exercise