updated the initial values
added the ability to change the starting point of the graph