Added max & min method