add calling getMax() on the top and edit message from case5