custom analyzer for problems #8 #9