A ball is thrown into the air with an upward velocity of 40 ft/s. Its height h in feet after t seconds is given by the function \large h=-16t^2+40t. What is the ball's maximum height?