The Optimum class needs to be used to return an object which contains all the information about how the function optimum was reached.