special cases exercise

special cases exercise