Added variable another variable on line 15 for Type B and added alert on line 16 for Type B also.