added getters for max/min values in array
example usage of max/min getters