Added variable and alert for type O on lines 27 and 28.