Add maximum method to pass test