A cricket ball is thrown by a player at a speed of 20 m/s in a direction $30^\circ$ above the horizontal. The maximum height attained by the ball during its motion is ($g=10$ m/s$^2$)