changed return type of method computeMax...