four different functions in the graphing function