The final project for pattern recognition