Adding max and min solution, missing final correction for width