Finding Maximum And Minimum Values Of Functions