added 9th case from homework