Added max min functino to quiz