Built initial code for line graph