diagnostic for pattern recognition project 8050802