Assigned start values and changed algorithm to equation section